package com.hmdp.utils;

public interface ILock {

    /**
     * 获取锁
     * @param timeout
     * @return true
     */
    boolean tryLock(long timeout);

    /**
     * 释放锁
     */
    void unlock();
}
